package org.project.d.network.start;

import java.util.concurrent.CompletableFuture;

/**
 * @author lin
 * @version V1.0
 * @description
 * @date 2020/9/21 5:59 下午
 */
public interface Service {
    void start(Listener listener);

    void stop(Listener listener);

    CompletableFuture<Boolean> start();

    CompletableFuture<Boolean> stop();

    boolean syncStart();

    boolean syncStop();

    void init();

    boolean isRunning();
}
